package com.ruoyi.calendar.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.calendar.mapper.schoolhistoryMapper;
import com.ruoyi.calendar.domain.schoolhistory;
import com.ruoyi.calendar.service.IschoolhistoryService;

/**
 * calendarService业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-20
 */
@Service
public class schoolhistoryServiceImpl implements IschoolhistoryService 
{
    @Autowired
    private schoolhistoryMapper schoolhistoryMapper;

    /**
     * 查询calendar
     * 
     * @param id calendar主键
     * @return calendar
     */
    @Override
    public schoolhistory selectschoolhistoryById(Long id)
    {
        return schoolhistoryMapper.selectschoolhistoryById(id);
    }

    /**
     * 查询calendar列表
     * 
     * @param schoolhistory calendar
     * @return calendar
     */
    @Override
    public List<schoolhistory> selectschoolhistoryList(schoolhistory schoolhistory)
    {
        return schoolhistoryMapper.selectschoolhistoryList(schoolhistory);
    }

    /**
     * 新增calendar
     * 
     * @param schoolhistory calendar
     * @return 结果
     */
    @Override
    public int insertschoolhistory(schoolhistory schoolhistory)
    {
        return schoolhistoryMapper.insertschoolhistory(schoolhistory);
    }

    /**
     * 修改calendar
     * 
     * @param schoolhistory calendar
     * @return 结果
     */
    @Override
    public int updateschoolhistory(schoolhistory schoolhistory)
    {
        return schoolhistoryMapper.updateschoolhistory(schoolhistory);
    }

    /**
     * 批量删除calendar
     * 
     * @param ids 需要删除的calendar主键
     * @return 结果
     */
    @Override
    public int deleteschoolhistoryByIds(Long[] ids)
    {
        return schoolhistoryMapper.deleteschoolhistoryByIds(ids);
    }

    /**
     * 删除calendar信息
     * 
     * @param id calendar主键
     * @return 结果
     */
    @Override
    public int deleteschoolhistoryById(Long id)
    {
        return schoolhistoryMapper.deleteschoolhistoryById(id);
    }
}
